interface IA
{
    void func();
}
public class Test4 {
    public static void main(String[] args) {
        //匿名内部类
        new IA(){

            @Override
            public void func() {
                System.out.println("hello!!!");
            }
        }.func();
    }
}
